GtkMenuTracker: one more visibility tweak
authorRyan Lortie <desrt@desrt.ca>
Wed, 20 Aug 2014 20:00:14 +0000 (16:00 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 14 Dec 2014 23:34:52 +0000 (18:34 -0500)
commit4288d7d7f4ad5d3d94737c908088d500abcbf36b
tree6e4cd41852ceae79dd7072cd970adb8cb9bca79e
parent8e731560ffa5370e7376689441600de0e084917e
GtkMenuTracker: one more visibility tweak

On creation, we call action_removed() in case the action was missing
from the start.  Because we just created the action, 'can_activate' will
always be FALSE here and this function will therefore always do nothing.

We do want the visibility state to be updated though, for the case where
the action is missing but the item should still be visible from the
start.

Update the visibility directly instead of trying to call
action_removed().

https://bugzilla.gnome.org/show_bug.cgi?id=735122
gtk/gtkmenutrackeritem.c